<!DOCTYPE HTML>
<html>
  <head>
    <title>Admin Panel</title>
        <link type = "image/x-icon" rel="SHORTCUT ICON" href="img/favicon.ico" />	
        <script type="text/javascript" src="jquery/jquery-1.7.1.min.js"></script>     
		<link rel="stylesheet" href="css/style.css" />
        <link rel="stylesheet" href="css/grid-12.css" />
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <script type="text/javascript" language="javascript">
		
		</script>
  </head>
  <body>
    <div id="container" class="container_12">
    
    <?php
		include("inc/db.class.php");
		require("php/header.php");
		include("inc/functions.php");
	

		
		if(!isset($_SESSION['login']) || empty($_SESSION['login']) || !isset($_SESSION['email']) || empty($_SESSION['email']) || !isset($_SESSION['user_role']))
			{
				header("Location: login.php?error=invalid-access");
				exit(0);
			}
		elseif($_SESSION['user_role']==2)
			{
				header("Location: test.php?error=invalid-access");
				exit(0);
			}
		
		?>
      <div id="line" class="grid_12"></div>
			<div id="" class="grid_12">
				<h3>Admin panel</h3>
				<div class="admin-nav">
					<a href="admin-panel.php" class="admin-nav-item">Dashboard</a> | <a href="admin-events.php" class="admin-nav-item">Event</a> | <a href="admin-announcements.php" class="admin-nav-item">Announcements</a>
				</div>
			</div>
						
			<?php require("php/footer.php"); ?>
    </div>
  </body>
</html>
